package com.example.anni.zhuzhoujia.bogege;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;

import com.example.anni.zhuzhoujia.R;

/**
 * Created by 张钧博 on 2016/6/9.
 */
public class NewsSearchActivity extends AppCompatActivity {
    private ImageView newsBack;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.news_search_main);

        newsBack = (ImageView) findViewById(R.id.news_back);
        newsBack.setOnClickListener(newsBackListener);

        //沉浸式状态栏
        //getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        //getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
    }

    View.OnClickListener newsBackListener = new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            finish();
        }
    };
}
